<template>
  <div>
    我是子组件{{ count }}
    <el-button @click="$emit('update:count', count+1)">点我加1</el-button>
  </div>
</template>

<script>

export default {
  name: 'AppIndex',
  components: {},
  props: {
    count: {
      type: Number,
      required: true

    }
  },
  data() {
    return {

    }
  },

  methods: {}
}

</script>

